set terminal pdf

#set title "Ratio of input to serialized size"

set logscale y
set multiplot layout 2, 1 ;
set ytics nomirror
set rmargin at screen 0.78

set style fill solid 1.00 border lt -1
set key outside right top vertical Right noreverse noenhanced autotitles nobox
set style histogram clustered gap 1 title  offset character 0, 0, 0
set style data histograms

unset xtics

set ylabel "Atome"
set bmargin at screen 0.52499
set tmargin at screen 0.9

plot "RATIO.dat" using 2:xtic(1) ti col, '' u 3 ti col, '' u 4 ti col, '' u 5 ti col, '' u 6 ti col, '' u 7 ti col, '' u 8 ti col

set yrange [*:*] reverse
set ylabel "Felder"
set tmargin at screen 0.52501
set bmargin at screen 0.15

unset title
unset key
set xtics border in scale 0,0 nomirror rotate by -45  offset character 0, 0, 0 autojustify

plot "RATIO_ARRAY.dat" using 2:xtic(1) ti col, '' u 3 ti col, '' u 4 ti col, '' u 5 ti col, '' u 6 ti col, '' u 7 ti col, '' u 8 ti col
